package com.gnehcnij.mall.service.impl;

import com.gnehcnij.mall.bean.UserAddress;
import com.gnehcnij.mall.service.OrderService;
import com.gnehcnij.mall.service.UserService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderServiceImpl implements OrderService {

    private final UserService userService;

    public OrderServiceImpl(UserService userService) {
        this.userService = userService;
    }

    public List<UserAddress> initOrder(String userId) {
        return userService.getUserAddressList(userId);
    }
}
